package com.haoshuang.zhouzhoubang.ui.adapter

import com.chad.library.adapter4.BaseQuickAdapter
import com.haoshuang.zhouzhoubang.R
import com.haoshuang.zhouzhoubang.databinding.ItemPushBinding
import com.haoshuang.zhouzhoubang.model.bean.CompleteOrderListBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 * 订单模块中的订单列表适配器
 * */
class PushAdapter2(data: MutableList<CompleteOrderListBean.Data>) :
    BaseBindingQuickAdapter<CompleteOrderListBean.Data, ItemPushBinding>(data) {

    override fun onBindViewHolder(
        holder: BaseBindingHolder,
        position: Int,
        item: CompleteOrderListBean.Data?
    ) {

        val binding = ItemPushBinding.bind(holder.itemView)
        binding.apply {
            tvName.text = item?.store_name
            tvTd.text = "订单类型：${item?.show_status}"
            tvTime.text = "推送时间：${item?.add_time}"
            tvAdr.text = item?.user_address
        }

    }

}